import fetch from '@/utils/fetch';
import formatParams from '@/utils/formdata';

export function getGuessList(id) { //消息头条
  return fetch({
    url: '/api/lottery.info/show',
    method: 'post',
    data:"id="+id
  });
}

export function playBet(data){ //选号下单
	return fetch({
		url:"/api/lottery.play/bet",
		method:"post",
		data:formatParams(data)
	})
}


export function getRemaining(){//获取余额
	return fetch({
		url:"/api/member.info/remaining",
		method:"get"
	})
}